package org.javaboy.account.controller;

import org.javaboy.account.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;
import java.util.Objects;

@RestController
public class AccountController {

    @Autowired
    AccountService accountService;

    @PostMapping("/deduce")
    public Map<String, Object> deduce(Integer account, Double money) {
        return accountService.deduce(account, money);
    }
}
